<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加文档</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/skin/admin/css/base.css">
<script language="javascript">

function callSubMethod(){
  var str=window.showModalDialog("{:U('Upload/index')}","","dialogWidth=400px;dialogHeight=200px;toolbar=no;scroll=yes;");
  document.getElementById('cover').value=str;

}



</script>
<link rel="stylesheet" href="__ROOT__/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="__ROOT__/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="__ROOT__/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="__ROOT__/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="__ROOT__/kindeditor/plugins/code/prettify.js"></script>
<script>
		KindEditor.ready(function(K) {
               K.create('textarea[name="content"]', {
					allowFileManager : true

				});
	
	
		});
	</script>
</head>
<body leftmargin="8" topmargin="8" background='__PUBLIC__/skin/images/allbg.gif'>

<!--  快速转换位置按钮  -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
  <tr>
    <td height="26" background="__PUBLIC__/skin/images/newlinebg3.gif"><table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center">添加产品</td>
        </tr>
      </table></td>
  </tr>
</table>

<!--  内容列表   -->
<form name="form2" action="" method="post" >
  <table width="98%" border="0" align="center" cellspacing="1" bgcolor="#D1DDAA">
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">产品标题：</td>
      <td bgcolor="#FFFFFF"><input name="title" type="text" id="title" style="height:22px; width:400px;"></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">产品封面：</td>
      <td bgcolor="#FFFFFF"><input name="cover" type="text" id="cover" style="height:22px; width:200px;">
        <input  type="button"  value="上传封面" onClick="callSubMethod();" /></td>
    </tr>
    <tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">产品分类：</td>
      <td bgcolor="#FFFFFF"><select name="cid" id="cid">
          <volist  name="list" id="vo" >
            <option value="{$vo['id']}">{$vo['name']}</option>
          </volist>
        </select></td>
    </tr>
    <tr>
      <td height="28" bgcolor="#FFFFFF">&nbsp;内容：</td>
      <td bgcolor="#FFFFFF"><textarea name="content" id="content" style="width:100%;height:400px;visibility:hidden;"></textarea></td>
    </tr>
    <tr>
      <td height="28" bgcolor="#FFFFFF">&nbsp;</td>
      <td bgcolor="#FFFFFF"><input name="submit" type="submit" id="submit" value="发布"></td>
    </tr>
  </table>
</form>
<table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
  <tr bgcolor='#EEF4EA'>
    <td background='skin/images/wbg.gif' align='center'>&nbsp;</td>
  </tr>
</table>
</body>
</html>